package io.gitee.hefren.hhmq.bean;

import com.google.common.base.MoreObjects;

/**
 * @Date 2024/7/21
 * @Author lifei
 */
public class Order {

    private Long id;
    private String name;
    private Double price;

    public Order() {
    }

    public Order(Long id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(Order.class)
                .add("id", id)
                .add("name", name)
                .add("price", price)
                .toString();
    }
}
